#include <iostream>
#include "Log.hpp"

using namespace LogMoudle;

int main()
{
    LOG(WARNING,"hello world %d cp %s hehe %f\n", 2002, "666", 9.9);
    sleep(1);
    LOG(WARNING,"hello world %d cp %s hehe %f\n", 2002, "666", 9.9);
    sleep(1);
    LOG(WARNING,"hello world %d cp %s hehe %f\n", 2002, "666", 9.9);
    sleep(1);
    LOG(WARNING,"hello world %d cp %s hehe %f\n", 2002, "666", 9.9);

    ENABLE_FILE();
    LOG(WARNING,"hello world %d cp %s hehe %f\n", 2002, "666", 9.9);
    sleep(1);
    LOG(WARNING,"hello world %d cp %s hehe %f\n", 2002, "666", 9.9);
    sleep(1);
    LOG(WARNING,"hello world %d cp %s hehe %f\n", 2002, "666", 9.9);
    sleep(1);
    LOG(WARNING,"hello world %d cp %s hehe %f\n", 2002, "666", 9.9);
    sleep(1);
    LOG(WARNING,"hello world %d cp %s hehe %f\n", 2002, "666", 9.9);

    ENABLE_SCREEN();
    LOG(INFO,"hello world!!!!\n");
    sleep(1);
    LOG(INFO,"hello world!!!!\n");
    sleep(1);
    LOG(INFO,"hello world!!!!\n");
    sleep(1);
    LOG(INFO,"hello world!!!!\n");

    return 0;
}

